//javaScript
function ad(button){
	var sid=document.getElementById(button.sid).value;
	window.location="http://localhost:8080/getStudents/updateStudent/"+sid;
}

function as(){
	var cboxs= document.getElementsByName("cbox1");
	for(i in cboxs){
		if(cboxs[i].checked){
			var cb=cboxs[i].value;
			window.location="http://localhost:8080/getStudents/deleteStudent/"+cb;
		}else{
			alert('请选择要删除的用户');
		}
	}
	
}


function va(form){
	var sname= document.getElementById("sname1").value;
	var sex= document.getElementById("sex1").value;
	var age= document.getElementById("age1").value;
	var address= document.getElementById("address1").value;
	var tell= document.getElementById("tell1").value;
	document.getElementById("mark").value=1;
	  if(sname!="" && sex!="" && age!="" && address!="" && tell!=""){
    alert('添加学生成功！');
    return true;
  }
  alert('抱歉,添加学生失败！');
  return false;
 }